org.eclipse.vtp.desktop.projects.core
Interface IPromptSet

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IVoiceToolsResource
All Known Implementing Classes:
PromptSet

public interface IPromptSet
extends IVoiceToolsResource

This interface represents the file resource that contains the prompt configuration of a persona project or an application brand.

Version:
2.0
Author:
Trip

Method Summary
 org.eclipse.core.resources.IFile getUnderlyingFile()
           
 java.io.InputStream read()
          Opens the prompt definition resource and returns an InputStream that will produce the byte contents of the resource.
 void write(java.io.InputStream source, org.eclipse.core.runtime.IProgressMonitor monitor)
          Requests the contents of the prompt definition resource be replaced with the contents of the given input stream.
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource
addRefreshListener, deferEvents, getName, getParent, getProject, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

read

java.io.InputStream read()
                         throws org.eclipse.core.runtime.CoreException
Opens the prompt definition resource and returns an InputStream that will produce the byte contents of the resource.

Returns:
An input stream to the contents of the resource
Throws:
org.eclipse.core.runtime.CoreException - If an error occurs while opening the resource

write

void write(java.io.InputStream source,
           org.eclipse.core.runtime.IProgressMonitor monitor)
           throws org.eclipse.core.runtime.CoreException
Requests the contents of the prompt definition resource be replaced with the contents of the given input stream.

Parameters:
source - An input stream to the new contents of the prompt definition resource
monitor - The progress monitor to be used to provide user feedback during the storage operation
Throws:
org.eclipse.core.runtime.CoreException - If and error occurs while storing the new prompt definition contents

getUnderlyingFile

org.eclipse.core.resources.IFile getUnderlyingFile()